<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/white/common/taglibs.jsp"%>
<%@include file="/white/common/common.jsp"%>

<html>
	<head>
		<script type="text/javascript">
	function toProdClassSel() {
		var url = ""

		url = "prodGroupAction!toProdClassSel.action";

		openWindow(url, 850, 500);
	}

	function toProdClassSelTwo() {
		var url = ""

		url = "prodGroupAction!toProdClassSelTwo.action";

		openWindow(url, 850, 500);
	}
	function toAdd() {	
	document.getElementById("change").style.display="none";
	document.getElementById("add").style.display="";
			}
	function validateForm(){
		if (confirm("您确定要修改吗？")) {
			return true;
		  }else{
			  return false;
		  }

	}
</script>
	</head>
	<body>
<div id="change" style="display:block;">
		<div id="div_title">
			<h3>
				产品客户修改
			</h3>
		</div>


		<!-- Data Form -->
		<%@include file="/white/common/message.jsp"%>
		<s:form method="post"
			action="prodCustomerAction-%{prodCustomer.id}!toAnyUpdate" theme="simple">
			<s:token />
			<table cellpadding="0" cellspacing="0" class="t_form">

				<tr>
					<td width="15%">
						一级分类编号:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="1" id="selectedUpdate1" />
						<s:textfield id="prodClassCode1"
							name="prodCustomer.prodClassCode1" maxlength="64" readonly="true" />
						<span class="red_star">*</span> &nbsp;&nbsp;一级分类名称:
						<s:textfield id="prodClassName1"
							name="prodCustomer.prodClassName1" maxlength="64" readonly="true" />
						<s:submit value=".." onclick="toProdClassSel();return false;"
							cssClass="input_button" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						二级分类编号:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="2" id="selectedUpdate2" />
						<s:textfield id="prodClassCode2"
							name="prodCustomer.prodClassCode2" maxlength="64" readonly="true" />
						<span class="red_star">*</span> &nbsp;&nbsp;二级分类名称:
						<s:textfield id="prodClassName2"
							name="prodCustomer.prodClassName2" maxlength="64" readonly="true" />
						<!-- <s:submit value=".." onclick="toProdClassSelTwo();return false;"
							cssClass="input_button" /> -->
					</td>
				</tr>
		
				<tr>
					<td width="15%">
						客户名称1:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="3" id="selectedUpdate3" />
						<s:textfield name="prodCustomer.name1" maxlength="64" />
						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<td width="15%">
						客户名称2:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="4" id="selectedUpdate4" />
						<s:textfield name="prodCustomer.name2" maxlength="64" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						区号:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="5" id="selectedUpdate5" />
						<s:textfield name="prodCustomer.areaCode" maxlength="64" />
					</td>
				</tr>
				
				<tr>
					<td width="15%">
						地区代码:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="6" id="selectedUpdate6" />
						<s:textfield name="prodCustomer.regionCode" maxlength="64" />
						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<td width="15%">
						城市代码:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="7" id="selectedUpdate7" />
						<s:textfield name="prodCustomer.cityCode" maxlength="64" />
						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<td width="15%">
						城市名称:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="8" id="selectedUpdate8" />
						<s:textfield name="prodCustomer.cityName" maxlength="64" />
					</td>
				</tr>
				<tr>
					<td width="15%">
						区域代码:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="9" id="selectedUpdate9" />
						<s:textfield name="prodCustomer.destrictCode" maxlength="64" />
						<span class="red_star">*</span>
					</td>
				</tr>
				<tr>
					<td width="15%">
						区域名称:
					</td>
					<td>
					<input type="checkbox" name="selectedUpdate" value="10" id="selectedUpdate10" />
						<s:textfield name="prodCustomer.destrictName" maxlength="64" />
					</td>
				</tr>
				<s:hidden name="anyUpdateSelectId"></s:hidden>
			</table>

			<div id="div_button">

				<s:submit key="修改"
					action="prodCustomerAction-%{prodCustomer.id}!toAnyUpdate"
					onclick="if(validateForm()){return true;}else{return false;}"
					cssClass="input_button" />

				<input type="button" value="返回"
					onclick="window.close();"
					class="input_button" />
			</div>

			<s:hidden name="searchString" />

		</s:form>
</div>
	</body>

</html>